package com.woniu.p2p.service;


import com.woniu.p2p.entity.*;

import java.util.List;

public interface BorrowService {

    /**
     * 查询贷款用途
     * @return
     */
    List<LoansUsemethod> findAllLoansUsemethod();

    /**
     * 添加贷款
     * 添加个人交易记录
     * @param loans 贷款
     * @return
     */
    int addLoansAnduserZong(Loans loans,UserZong userZong);


    /**
     * 查找还款方式
     * @return
     */
    List<InvestRepay> findAllInvestRepay();


    int addLoansMouth(UserMonloans userMonloans);


    Loans findLoansById(Integer id);


    UserLoans findUserLoans(Integer id);


    int updateUserLoans(UserLoans userLoans);


    User findByUserId(Integer userId);

    int updateLoans(Loans loans);

    int updateUser(User user);








}
